package com.ruoyi.electrical.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.electrical.mapper.ElectricalCleaningMaintenanceMapper;
import com.ruoyi.electrical.domain.ElectricalCleaningMaintenance;
import com.ruoyi.electrical.service.IElectricalCleaningMaintenanceService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-05-09
 */
@Service
public class ElectricalCleaningMaintenanceServiceImpl implements IElectricalCleaningMaintenanceService 
{
    @Autowired
    private ElectricalCleaningMaintenanceMapper electricalCleaningMaintenanceMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param cleaningMaintenanceId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public ElectricalCleaningMaintenance selectElectricalCleaningMaintenanceByCleaningMaintenanceId(Long cleaningMaintenanceId)
    {
        return electricalCleaningMaintenanceMapper.selectElectricalCleaningMaintenanceByCleaningMaintenanceId(cleaningMaintenanceId);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param electricalCleaningMaintenance 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<ElectricalCleaningMaintenance> selectElectricalCleaningMaintenanceList(ElectricalCleaningMaintenance electricalCleaningMaintenance)
    {
        return electricalCleaningMaintenanceMapper.selectElectricalCleaningMaintenanceList(electricalCleaningMaintenance);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param electricalCleaningMaintenance 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertElectricalCleaningMaintenance(ElectricalCleaningMaintenance electricalCleaningMaintenance)
    {
        return electricalCleaningMaintenanceMapper.insertElectricalCleaningMaintenance(electricalCleaningMaintenance);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param electricalCleaningMaintenance 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateElectricalCleaningMaintenance(ElectricalCleaningMaintenance electricalCleaningMaintenance)
    {
        return electricalCleaningMaintenanceMapper.updateElectricalCleaningMaintenance(electricalCleaningMaintenance);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param cleaningMaintenanceIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteElectricalCleaningMaintenanceByCleaningMaintenanceIds(Long[] cleaningMaintenanceIds)
    {
        return electricalCleaningMaintenanceMapper.deleteElectricalCleaningMaintenanceByCleaningMaintenanceIds(cleaningMaintenanceIds);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param cleaningMaintenanceId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteElectricalCleaningMaintenanceByCleaningMaintenanceId(Long cleaningMaintenanceId)
    {
        return electricalCleaningMaintenanceMapper.deleteElectricalCleaningMaintenanceByCleaningMaintenanceId(cleaningMaintenanceId);
    }
}
